<layout name="Layout/main" />

<form action="{:U('rbc/addnode')}" method='post' class="form-horizontal" role="form">
	<div class="form-group">
		<label class="col-sm-1 control-label">英文名称:</label>
		<div class="col-sm-3">
			<input type='text' name="name" class="form-control" />
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-1 control-label">中文名称:</label>
		<div class="col-sm-3">
			<input type='text' name="title" class="form-control" />
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-1 control-label">状&nbsp;&nbsp;态:</label>
		<div class="col-sm-3">
			<label class="radio-inline"><input type='radio'
				name='status' value="1" />开启</label> <label class="radio-inline"><input
				type='radio' name='status' value="0" />禁止</label>

		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-1 control-label">类&nbsp;&nbsp;型:</label>
		<div class="col-sm-2">
			<select name='level' class="form-control">
				<option value='3'>操作</option>
				<option value="2">模块</option>
				<option value="1">项目</option>
			</select>
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-1 control-label">父节点:</label>
		<div class="col-sm-2">
			<select name='pid' class="form-control">
				<option value='0'>根节点</option>
				<volist name='pnode' id='vo'>
              <if condition="$vo['level'] eq 1"  >
				<option value="{$vo.id}">{$vo.title}</option>
<else/>
<option value="{$vo.id}">&nbsp;&nbsp;&nbsp;&nbsp;|-{$vo.title}</option>
</if>
				

				</volist>
			</select>
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-1 control-label">排序:</label>
		<div class="col-sm-1">
			<input type="text" name='sort' class="form-control" value="20">
		</div>
	</div>
	<div class="form-group">
		<div class="col-sm-2">
			<button type='submit'
				class=" col-sm-offset-2 col-sm-10 btn btn-success form-control">添加</button>
		</div>
	</div>

</form>
